package com.ljf.config.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ljf.common.model.BasisModel;
import com.ljf.config.annotation.AutoCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 记录标签配置对象  config_dat_record_symbol
 *
 * @author LJF
 * @since 2025-01-31
 */
@Data
@ApiModel("记录标签配置")
@TableName("config_dat_record_symbol")
@EqualsAndHashCode(callSuper = true)
public class ConfigDatRecordSymbol extends BasisModel {

	private static final long serialVersionUID = 1L;

	/**
	 * Java类型: Long
	 * 数据库类型: bigint
	 * 注释: ID
	 * {@link ConfigDatRecordSymbol#COL_ID}
	 */
	@JsonProperty("id")
	@ApiModelProperty(value = "ID")
	@TableId(value="id", type= IdType.AUTO)
	private Long id;

	/**
	 * Java类型: String
	 * 数据库类型: char(10)
	 * 注释: 编码
	 * {@link ConfigDatRecordSymbol#COL_CODE}
	 */
	@AutoCode
	@TableField("code")
	@JsonProperty("code")
	@ApiModelProperty(value = "编码")
	private String code;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(20)
	 * 注释: 名称
	 * {@link ConfigDatRecordSymbol#COL_NAME}
	 */
	@TableField("name")
	@JsonProperty("name")
	@ApiModelProperty(value = "名称")
	private String name;

	/**
	 * Java类型: Integer
	 * 数据库类型: smallint
	 * 注释: 类型(1:赚钱软件自动记录)
	 * {@link ConfigDatRecordSymbol#COL_TYPE}
	 */
	@TableField("type")
	@JsonProperty("type")
	@ApiModelProperty(value = "类型(1:赚钱软件自动记录)")
	private Integer type;


	/**
	 * ID
	 * {@link ConfigDatRecordSymbol#id}
	 */
	public static final String COL_ID = "id";
	/**
	 * 编码
	 * {@link ConfigDatRecordSymbol#code}
	 */
	public static final String COL_CODE = "code";
	/**
	 * 名称
	 * {@link ConfigDatRecordSymbol#name}
	 */
	public static final String COL_NAME = "name";
	/**
	 * 类型(1:赚钱软件自动记录)
	 * {@link ConfigDatRecordSymbol#type}
	 */
	public static final String COL_TYPE = "type";

}
